-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Web UI not working when multiprocessing queue has > 320 in size #3137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
So, I changed the line
And this error happens now
Can you please help me solve this problem? |
Hi! These are both interesting issues, but I think they are more related to your specific use case in combination with gevent and not so much to Locust specifically. I don't have much experience with pandas. The first issue you're having might be Locust related. Can you try moving the initialization code from module level into the init event? |
You probably want to use a |
Thank you so much @cyberw and @cgoldberg for the suggestion. Though, after I asked Claude 3.7 Sonnet, I found a workaround for my problem. Simply by using the Sincerely, My workaround solution
|
Uh oh!
There was an error while loading. Please reload this page.
Prerequisites
Description
I tried to do load testing with Locust for online incremental machine learning in large scale system. Therefore, the input for the system can't be random and I have prepared a dataset to be the input. The dataset should be loaded before the load testing begins. I put the dataset at the start of the file so it will be a global variable. And I use queue because it is easy to use one list for many concurrent virtual user.
So, I do this to my code:
What makes it interesting is that, if I put it
if i == 320 then break
, then the web UI will work fineBut if I put
if i == 321 then break
, then the web UI won't workPlease help me solve this problem.
Sincerely,
Adil
Command line
locust -f locust-test.py --web-host=0.0.0.0 --web-port=8089
Locustfile contents
Python version
3.12.3
Locust version
locust==2.37.0 locust-cloud==1.21.2
Operating system
Linux Ubuntu WSL 24.04
The text was updated successfully, but these errors were encountered: